<?php self::link_script('jquery.form'); ?>

<div class="rightRow1"><?php if ($_show): ?>修改<?php else: ?>新增<?php endif; ?>语言能力（<span class="org14">*</span>为必填项）</div>

<form id="language-form" name="frmMain" action="<?php self::csrf_url('user', $_action); ?>" method="post">
    <!-- 语言能力 -->
    <table class="table5" border="0" cellpadding="0" cellspacing="0" width="100%">
        <colgroup><col width="1"><col width="110"><col></colgroup>
        <tbody>
            <tr>
                <td><span class="org14">*</span></td>
                <td>外语语种</td>
                <td>
                    <select class="classFormEle_ok" name="category">
                        <?php foreach (language_model::$categories as $category_id => $category): ?>
                            <option <?php if ($_show && ((int) $_language->category === $category_id)): ?>selected="selected"<?php endif; ?> value="<?php echo $category_id; ?>"><?php echo $category ?></option>
                        <?php endforeach; ?>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <span id="foreignLan0">读写能力
                        <select name="write_skill">
                            <?php foreach (language_model::$write_skills as $write_skill_id => $write_skill): ?>
                                <option <?php if ($_show && ((int) $_language->write_skill === $write_skill_id)): ?>selected="selected"<?php endif; ?> value="<?php echo $write_skill_id ?>"><?php echo $write_skill ?></option>
                            <?php endforeach; ?>
                        </select>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        听说能力
                        <select name="read_skill">
                            <?php foreach (language_model::$read_skills as $read_skill_id => $read_skill): ?>
                                <option <?php if ($_show && ((int) $_language->read_skill === $read_skill_id)): ?>selected="selected"<?php endif; ?> value="<?php echo $read_skill_id ?>"><?php echo $read_skill ?></option>
                            <?php endforeach; ?>
                        </select>
                    </span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td>
                    <span style="display: none;" class="org12 formError" id="txtError_language"></span>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- end 语言能力 -->
    <div class="btnCon">
        <?php if (!$_show): ?>
            <input class="btn5" name="add" value="保存并新增语言能力" type="submit">
        <?php endif; ?>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input class="btn7" name="save" value="保存" type="submit"> &nbsp;&nbsp;<a href="<?php self::php_url($_return_url); ?>">返回<span class="msg_hint">&nbsp;</span></a>
    </div>
</form>